package com.woniu.client;

import com.woniu.commons.model.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name = "product-server",path = "/product")
public interface ProductClient {




    /**
     * 根据教练id查询团课学员
     * @param coachId
     * @return
     */
    @GetMapping("/yUserLeagueClassMargin/loadLeagueStudentIds")
    @ApiOperation("根据教练id查询团课学员")
    public Result<List<Integer>> loadLeagueStudentIds(@RequestParam("coachId") Integer coachId);

    /**
     * 根据教练id查询私教学员
     * @param coachId
     * @return
     */
    @GetMapping("/yUserPersonalClassMargin/loadPersonalStudentIds")
    @ApiOperation("根据教练id查询私教学员")
    public Result<List<Integer>> loadPersonalStudentIds(@RequestParam("coachId") Integer coachId);

}
